Optimal. Leaf size=314 \[ \frac {3 \left (2 \sqrt {a}-\sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{7/4} \left (\sqrt {a}-\sqrt {b}\right )^{5/2} \sqrt {b} d}-\frac {3 \left (2 \sqrt {a}+\sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{7/4} \left (\sqrt {a}+\sqrt {b}\right )^{5/2} \sqrt {b} d}-\frac {b \tanh (c+d x) \left (3 a+b-4 (a+b) \tanh ^2(c+d x)\right )}{8 (a-b)^3 d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\tanh (c+d x) \left (\frac {9 a^2-24 a b-b^2}{(a-b)^3}-\frac {(17 a+3 b) \tanh ^2(c+d x)}{(a-b)^2}\right )}{32 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.48, antiderivative size = 314, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {3296, 1347,
1692, 1180, 214} \begin {gather*} \frac {3 \left (2 \sqrt {a}-\sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{7/4} \sqrt {b} d \left (\sqrt {a}-\sqrt {b}\right )^{5/2}}-\frac {3 \left (2 \sqrt {a}+\sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{7/4} \sqrt {b} d \left (\sqrt {a}+\sqrt {b}\right )^{5/2}}-\frac {\tanh (c+d x) \left (\frac {9 a^2-24 a b-b^2}{(a-b)^3}-\frac {(17 a+3 b) \tanh ^2(c+d x)}{(a-b)^2}\right )}{32 a d \left ((a-b) \tanh ^4(c+d x)-2 a \tanh ^2(c+d x)+a\right )}-\frac {b \tanh (c+d x) \left (-4 (a+b) \tanh ^2(c+d x)+3 a+b\right )}{8 d (a-b)^3 \left ((a-b) \tanh ^4(c+d x)-2 a \tanh ^2(c+d x)+a\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 1180
Rule 1347
Rule 1692
Rule 3296
Rubi steps
\begin {align*} \int \frac {\sinh ^4(c+d x)}{\left (a-b \sinh ^4(c+d x)\right )^3} \, dx &=\frac {\text {Subst}\left (\int \frac {x^4 \left (1-x^2\right )^3}{\left (a-2 a x^2+(a-b) x^4\right )^3} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=-\frac {b \tanh (c+d x) \left (3 a+b-4 (a+b) \tanh ^2(c+d x)\right )}{8 (a-b)^3 d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\text {Subst}\left (\int \frac {-\frac {2 a^2 b^2 (3 a+b)}{(a-b)^3}-\frac {8 a^2 (3 a-b) b^2 x^2}{(a-b)^3}-\frac {16 a^2 (a-3 b) b x^4}{(a-b)^2}+\frac {16 a^2 b x^6}{a-b}}{\left (a-2 a x^2+(a-b) x^4\right )^2} \, dx,x,\tanh (c+d x)\right )}{16 a^2 b d}\\ &=-\frac {b \tanh (c+d x) \left (3 a+b-4 (a+b) \tanh ^2(c+d x)\right )}{8 (a-b)^3 d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\tanh (c+d x) \left (\frac {9 a^2-24 a b-b^2}{(a-b)^3}-\frac {(17 a+3 b) \tanh ^2(c+d x)}{(a-b)^2}\right )}{32 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {\frac {12 a^3 (3 a-b) b^2}{(a-b)^2}-\frac {12 a^3 (5 a-b) b^2 x^2}{(a-b)^2}}{a-2 a x^2+(a-b) x^4} \, dx,x,\tanh (c+d x)\right )}{128 a^4 b^2 d}\\ &=-\frac {b \tanh (c+d x) \left (3 a+b-4 (a+b) \tanh ^2(c+d x)\right )}{8 (a-b)^3 d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\tanh (c+d x) \left (\frac {9 a^2-24 a b-b^2}{(a-b)^3}-\frac {(17 a+3 b) \tanh ^2(c+d x)}{(a-b)^2}\right )}{32 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}+\frac {\left (3 \left (2 a-\sqrt {a} \sqrt {b}-b\right )\right ) \text {Subst}\left (\int \frac {1}{-a+\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{64 a^{3/2} \left (\sqrt {a}+\sqrt {b}\right )^2 \sqrt {b} d}-\frac {\left (3 \left (2 a+\sqrt {a} \sqrt {b}-b\right )\right ) \text {Subst}\left (\int \frac {1}{-a-\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{64 a^{3/2} \left (\sqrt {a}-\sqrt {b}\right )^2 \sqrt {b} d}\\ &=\frac {3 \left (2 \sqrt {a}-\sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{7/4} \left (\sqrt {a}-\sqrt {b}\right )^{5/2} \sqrt {b} d}-\frac {3 \left (2 \sqrt {a}+\sqrt {b}\right ) \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{64 a^{7/4} \left (\sqrt {a}+\sqrt {b}\right )^{5/2} \sqrt {b} d}-\frac {b \tanh (c+d x) \left (3 a+b-4 (a+b) \tanh ^2(c+d x)\right )}{8 (a-b)^3 d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )^2}-\frac {\tanh (c+d x) \left (\frac {9 a^2-24 a b-b^2}{(a-b)^3}-\frac {(17 a+3 b) \tanh ^2(c+d x)}{(a-b)^2}\right )}{32 a d \left (a-2 a \tanh ^2(c+d x)+(a-b) \tanh ^4(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 3.41, size = 316, normalized size = 1.01 \begin {gather*} \frac {-\frac {3 \left (2 a^{3/2}+3 a \sqrt {b}-b^{3/2}\right ) \text {ArcTan}\left (\frac {\left (\sqrt {a}-\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {-a+\sqrt {a} \sqrt {b}}}\right )}{a^{3/2} \sqrt {-a+\sqrt {a} \sqrt {b}} \sqrt {b}}-\frac {3 \left (2 a^{3/2}-3 a \sqrt {b}+b^{3/2}\right ) \tanh ^{-1}\left (\frac {\left (\sqrt {a}+\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {a+\sqrt {a} \sqrt {b}}}\right )}{a^{3/2} \sqrt {a+\sqrt {a} \sqrt {b}} \sqrt {b}}+\frac {8 (-7 a-2 b+(2 a+b) \cosh (2 (c+d x))) \sinh (2 (c+d x))}{a (8 a-3 b+4 b \cosh (2 (c+d x))-b \cosh (4 (c+d x)))}+\frac {64 (a-b) (-6 \sinh (2 (c+d x))+\sinh (4 (c+d x)))}{(-8 a+3 b-4 b \cosh (2 (c+d x))+b \cosh (4 (c+d x)))^2}}{64 (a-b)^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 2.32, size = 523, normalized size = 1.67
method | result | size |
derivativedivides | \(\frac {-\frac {32 \left (\frac {3 \left (3 a -b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (77 a -23 b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}+\frac {\left (177 a^{2}-131 a b -16 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right ) a}-\frac {\left (109 a^{2}-367 a b -144 b^{2}\right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 a \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (109 a^{2}-367 a b -144 b^{2}\right ) \left (\tanh ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 a \left (a^{2}-2 a b +b^{2}\right )}+\frac {\left (177 a^{2}-131 a b -16 b^{2}\right ) \left (\tanh ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right ) a}-\frac {\left (77 a -23 b \right ) \left (\tanh ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}+\frac {3 \left (3 a -b \right ) \left (\tanh ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}\right )}{\left (a \left (\tanh ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )^{2}}-\frac {3 \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\left (3 a -b \right ) \textit {\_R}^{6}+\left (-17 a +3 b \right ) \textit {\_R}^{4}+\left (17 a -3 b \right ) \textit {\_R}^{2}-3 a +b \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}\right )}{128 \left (a^{2}-2 a b +b^{2}\right ) a}}{d}\) | \(523\) |
default | \(\frac {-\frac {32 \left (\frac {3 \left (3 a -b \right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (77 a -23 b \right ) \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}+\frac {\left (177 a^{2}-131 a b -16 b^{2}\right ) \left (\tanh ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right ) a}-\frac {\left (109 a^{2}-367 a b -144 b^{2}\right ) \left (\tanh ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 a \left (a^{2}-2 a b +b^{2}\right )}-\frac {\left (109 a^{2}-367 a b -144 b^{2}\right ) \left (\tanh ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 a \left (a^{2}-2 a b +b^{2}\right )}+\frac {\left (177 a^{2}-131 a b -16 b^{2}\right ) \left (\tanh ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right ) a}-\frac {\left (77 a -23 b \right ) \left (\tanh ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}+\frac {3 \left (3 a -b \right ) \left (\tanh ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{512 \left (a^{2}-2 a b +b^{2}\right )}\right )}{\left (a \left (\tanh ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+6 a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-16 b \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-4 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a \right )^{2}}-\frac {3 \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\left (3 a -b \right ) \textit {\_R}^{6}+\left (-17 a +3 b \right ) \textit {\_R}^{4}+\left (17 a -3 b \right ) \textit {\_R}^{2}-3 a +b \right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}\right )}{128 \left (a^{2}-2 a b +b^{2}\right ) a}}{d}\) | \(523\) |
risch | \(\text {Expression too large to display}\) | \(1700\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 21932 vs.
\(2 (264) = 528\).
time = 0.91, size = 21932, normalized size = 69.85 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.98, size = 362, normalized size = 1.15 \begin {gather*} \frac {3 \, a b^{2} e^{\left (14 \, d x + 14 \, c\right )} - 30 \, a b^{2} e^{\left (12 \, d x + 12 \, c\right )} + 3 \, b^{3} e^{\left (12 \, d x + 12 \, c\right )} - 80 \, a^{2} b e^{\left (10 \, d x + 10 \, c\right )} + 111 \, a b^{2} e^{\left (10 \, d x + 10 \, c\right )} - 16 \, b^{3} e^{\left (10 \, d x + 10 \, c\right )} + 256 \, a^{3} e^{\left (8 \, d x + 8 \, c\right )} - 64 \, a^{2} b e^{\left (8 \, d x + 8 \, c\right )} - 26 \, a b^{2} e^{\left (8 \, d x + 8 \, c\right )} + 35 \, b^{3} e^{\left (8 \, d x + 8 \, c\right )} + 336 \, a^{2} b e^{\left (6 \, d x + 6 \, c\right )} - 95 \, a b^{2} e^{\left (6 \, d x + 6 \, c\right )} - 40 \, b^{3} e^{\left (6 \, d x + 6 \, c\right )} - 64 \, a^{2} b e^{\left (4 \, d x + 4 \, c\right )} + 54 \, a b^{2} e^{\left (4 \, d x + 4 \, c\right )} + 25 \, b^{3} e^{\left (4 \, d x + 4 \, c\right )} - 19 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} - 8 \, b^{3} e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a b^{2} + b^{3}}{8 \, {\left (a^{3} b - 2 \, a^{2} b^{2} + a b^{3}\right )} {\left (b e^{\left (8 \, d x + 8 \, c\right )} - 4 \, b e^{\left (6 \, d x + 6 \, c\right )} - 16 \, a e^{\left (4 \, d x + 4 \, c\right )} + 6 \, b e^{\left (4 \, d x + 4 \, c\right )} - 4 \, b e^{\left (2 \, d x + 2 \, c\right )} + b\right )}^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\mathrm {sinh}\left (c+d\,x\right )}^4}{{\left (a-b\,{\mathrm {sinh}\left (c+d\,x\right )}^4\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________